<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    function qian(){
    let yi = prompt(`请输入银行卡余额：`)
    let er = prompt(`请输入当月食宿消费金额：`)
    let san = prompt(`请输入当月生活费金额：`)
    let shenyu = yi - er - san
    return shenyu
    }
    let je = qian()
    console.log(je)
  </script>
</body>
</html>